home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12318 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borland C's tmpnam() 
  5. Date: Sun, 31 Mar 96 13:03:12 GMT
  6. Organization: none
  7. Message-ID: <828277392snz@genesis.demon.co.uk>
  8. References: <AD75E5DC9668E2A52@mcdiala13.it.luc.edu> <Pine.A32.3.91.960322134158.23347A-100000@red.weeg.uiowa.edu> <AD78E5E796681EC58@mcdialb10.it.luc.edu> <827626790snz@genesis.demon.co.uk>  <Pine.SOL.3.90.960324183336.6304B-100000@eddie>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <Pine.SOL.3.90.960324183336.6304B-100000@eddie>
  15.            a378grai@cdf.toronto.edu "Darrell Grainger" writes:
  16.  
  17. >I don't have a copy of the actual standard handy but The Standard C Library
  18. >by P.J.Plauger has a footnote to the above quote. The footnote is:
  19. >
  20. >"Files created using strings generated by the tmpnam function are temporary
  21. >only in the sense that their names should not collide with those generated
  22. >by conventional naming rules for the implimentation. It is still necessary
  23. >to use the remove function to remove such files when their use is ended,
  24. >and before program termination."
  25. >
  26. >This leads me to believe that the file names produced by tmpnam could exist
  27. >but they are of a specific pattern which you can avoid. For example, gcc on
  28. >OS/2 produces the filenames 10000000.tmp, 10000001.tmp, etc. So you should
  29. >avoid using filenames ending in .tmp in OS/2.
  30.  
  31. That might be reasonable for implementation to do but there is no
  32. such guarantee in the standard.
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.